<div id="tiga_ba">
	<div id="tiga_baa">Pindah Data Obat</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
            
<?php
	$id=$_GET['id'];
	$sql="select * from master_obat where kode_obat = '$id'";
	$qry=mysql_query($sql);
	$hasil=mysql_fetch_array($qry);
?>
<form action="utama.php?module=mod_mobat&act=transfer" onsubmit="return gsValidate('transfer','Data Transfer Obat Harus Dipilih','required');" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Kode Obat</td>
			<td>&nbsp;</td>
			<td>
				<input name="id" type="text" class="input_small" id="icd10" value="<?php echo $hasil['kode_obat']?>" disabled/>
				<input name="kode" type="hidden" id="kode" value="<?php echo $hasil['kode_obat']?>" />
			</td>
		</tr>
		<tr>
			<td>Nama Obat</td>
			<td>&nbsp;</td>
			<td>
				<input name="nama" type="text" class="input2" id="nama" value="<?php echo $hasil['nama_obat']?>" disabled/>
			</td>
		</tr>
		<tr>
			<td>Pindah ke</td>
			<td>&nbsp;</td>
			<td>
				<select name="transfer" id="transfer" class="input">
					<?php
						$obat = mysql_query("select kode_obat,nama_obat from master_obat where kode_obat <> '$id'");
						while($o = mysql_fetch_array($obat)){
							echo "<option value='$o[kode_obat]'>$o[kode_obat] - $o[nama_obat]</option>";
						}
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Proses" /></td>
		</tr>
	</table>
</form>		
            
        